/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.asu.cse360.service.client;

import edu.asu.cse360.model.Restaurant;
import edu.asu.cse360.model.Table;
import edu.asu.cse360.service.TableService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;


public class ClientTableService implements TableService{

    @Autowired
    private List<Table> tables;

    @Override
    public List<Table> getTables(Restaurant restaurant) {
        return tables;
    }

    @Override
    public Table save(Table table) {
        // do nothing.
        return table;
    }

    @Override
    public Table getNextAvailable(Restaurant restaurant) {
        return tables.get(0);
    }

}
